package com.hjm.system.domain.question;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.hjm.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


@Setter
@Getter
@ToString
@TableName("tb_question")
public class Question extends BaseEntity {

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "QUESTION_ID", type = IdType.ASSIGN_ID)
    private Long questionId;

    private String title;            // 题目标题

    private String content;          // 题目内容

    private Integer difficulty;      // 题目难度

    private String defaultCode;     // 默认代码块

    private String mainFunc;        // main函数

    private String questionCase;    // 题目用例

    private Long timeLimit;          // 时间限制

    private Long spaceLimit;         // 空间限制

}
